import React, { Component, Fragment } from 'react';
import PageHeaderLayout from '../../layouts/PageHeaderLayout';
import GetData from 'components/GetData';
import { connect } from 'dva';

@connect(({ testdata, loading }) => ({
  testdata,
  loading: loading.effects['testdata/fetchData'],
}))
export default class Page1 extends Component {
	componentDidMount() {
	    const { dispatch } = this.props;
	    dispatch({
	        type: 'testdata/fetchData',
	    });
	}
	render() {
		const { testdata } = this.props;
		const { entropy } = testdata;
		console.log(this.props);
		console.log(entropy);
		return (
			<GetData source={entropy}></GetData>
		);
	}
}

